package com.supcon.exchangedata.repository.slave4;


import com.supcon.exchangedata.pojo.entity.mysql.operation.gj.SgjjtBike;
import com.supcon.exchangedata.pojo.entity.mysql.operation.gj.SgjjtRoute;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *   公交线路信息
 * @Author: yangbin
 * @Date: 2022/04/20/9:00
 * @Description:
 */
public interface SlaveGjBasicInfo1 extends JpaRepository<SgjjtRoute, Long> {

    @Transactional
    @Query(nativeQuery = true,value = "SELECT * FROM sgjjt_route where op = 'insert'")
    List<SgjjtRoute> findAllBusRoute();
}
